package com.bianguo.zsd.SpringBootDemo.enums;

public enum ResultEnum {

    SUCCESS(200, "请求成功"),
    LOGIN_OTHER(201, "用户在其他设备登录，请重新登录"),
    USER_ERROR(202, "用户不存在"),
    ACCOUNT_EXCEPTION(203, "账号异常，请重新登录"),
    UNKNOWN_ERROR(-1, "未知错误");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
